package cn.ham.web;

import cn.ham.service.RibbonService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 18号
 * @date 2016/12/20 15:24
 */
@RestController
public class RibbonController {
    private static Logger logger = LoggerFactory.getLogger(RibbonController.class);

    @Autowired
    private RibbonService ribbonService;

    @RequestMapping("hello")
    public String hello(){
        String result = ribbonService.hello();
        logger.info(result);
        return result;
    }
}
